#ifndef __HTTP_SiNGLE_H_
#define __HTTP_SiNGLE_H_

#if 0
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#endif

typedef struct 
{
	uint8_t D0:1;  //bit 0
	uint8_t D1:1;  //bit 1
	uint8_t D2:1;
	uint8_t D3:1;
	uint8_t D4:1;
	uint8_t D5:1;
	uint8_t D6:1;
	uint8_t D7:1;  //bit 7
	// low 
}defByteBits;

typedef union
{
  defByteBits bits;
  uint8_t byte;
}def_DEV_PART_STATUS;


class CHttpSingle
{ 
    // 其它成员  
public:  
    static CHttpSingle* GetInstance();

    int test01();
private:  
    CHttpSingle();
    ~CHttpSingle();  

    static CHttpSingle * m_pInstance;  

private:
    class CGarbo // 它的唯一工作就是在析构函数中删除CSingleton的实例  
    { 
    public: 
        ~CGarbo() 
        {  
            if (CHttpSingle::m_pInstance!=NULL) 
                delete CHttpSingle::m_pInstance; 
            printf("0002\n");
        } 
    }; 
    static CGarbo Garbo; // 声明一个静态成员，在程序结束时，系统会调用它的析构函数，注意这里仅仅是声明，还需要在相应的cpp文件中对静态成员进行定义哦。 
};

#endif